Micron Document
baubs git

Node / mirrors / respira / files / src / utils / displayFilename.ts

Displaying Raw • Download

src/utils/displayFilename.ts fix-relative-positioning (5d456008) Text, 501 B

/**
* getDisplayFilename Utility
*
* Determines which filename to display based on priority:
* 1. currentFileName (from pattern store)
* 2. localFileName (from file input)
* 3. resumeFileName (from cache)
* 4. Empty string
*/

export function getDisplayFilename(options: {
currentFileName: string | null;
localFileName: string;
resumeFileName: string | null;
}): string {
return (
options.currentFileName ||
options.localFileName ||
options.resumeFileName ||
""
);
}

Served by rngit 1.4.2 - Generated in 0.02s